Rashi on I Chronicles
and David hamstrung because it is written (Deut. 17:16) “Only he must not get himself many horses,” (Josh. 11:6): “... you shall cripple their horses.”
Rashi on I Chronicles
and left over of them a hundred chariots He must not get himself many horses, but enough for his chariots is permissible.